package vashion.azeroth.core.item.dao;

import vashion.azeroth.core.dao.BaseDao;
import vashion.azeroth.core.dao.DaoRepository;
import vashion.azeroth.core.item.pojo.ItemSkuDO;

import java.util.List;
import java.util.Map;

/**
 * Created by tingting on 15/9/1.
 * 商品dao
 */
@DaoRepository
public interface ItemSkuDao extends BaseDao<ItemSkuDO> {

    boolean batchSave(List<ItemSkuDO> skuDOList);

    boolean reduceItemSkuNum(Map<String, Object> paramMap);

    boolean addItemSkuNum(Map<String, Object> paramMap);

    /**
     * 获取sku详情
     *
     * @param skuIdList
     * @return
     */
    List<ItemSkuDO> findSkuList(List<Long> skuIdList);
}
